package com.kingdee.pda.entity;

import java.math.BigDecimal;
import java.util.List;

public class ReplenishOrderBean {
    public static String STATUS_WAIT_REPLENISH = "D";
    public static String STATUS_IN_REPLENISH = "E";
    public static String STATUS_FINISHED_REPLENISH = "F";

    /**
     * data : [{"billId":1180578807560819712,"billNo":"BHD-20210617-009","billStatus":"D","allWantQty":12,"allRealQty":0,"createDate":"2021-06-17 21:19:14","modifyDate":"2021-06-17 21:22:55"}]
     * errorCode : success
     * success : true
     */

    private String errorCode;
    private boolean success;
    private List<DataBean> data;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * billId : 1180578807560819712
         * billNo : BHD-20210617-009
         * billStatus : D
         * allWantQty : 12.0
         * allRealQty : 0.0
         * createDate : 2021-06-17 21:19:14
         * modifyDate : 2021-06-17 21:22:55
         */

        private long billId;
        private String billNo;
        private String billStatus;  //订单状态 D 待补货  E 补货中  F 补货完成
        private BigDecimal allWantQty;
        private BigDecimal allRealQty;
        private String createDate;
        private String modifyDate;

        public long getBillId() {
            return billId;
        }

        public void setBillId(long billId) {
            this.billId = billId;
        }

        public String getBillNo() {
            return billNo;
        }

        public void setBillNo(String billNo) {
            this.billNo = billNo;
        }

        public String getBillStatus() {
            return billStatus;
        }

        public void setBillStatus(String billStatus) {
            this.billStatus = billStatus;
        }

        public double getAllWantQty() {
            return allWantQty.doubleValue();
        }

        public void setAllWantQty(double allWantQty) {
            this.allWantQty = new BigDecimal(allWantQty);
        }

        public double getAllRealQty() {
            return allRealQty.doubleValue();
        }

        public void setAllRealQty(double allRealQty) {
            this.allRealQty = new BigDecimal(allRealQty);
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getModifyDate() {
            return modifyDate;
        }

        public void setModifyDate(String modifyDate) {
            this.modifyDate = modifyDate;
        }
    }
}
